import Request from './../../../http/request_map'
export const getPoiTypes = () => {
  return new Request().http({
    url: '/poi/types',
    method: 'GET',
  })
}

export const getPoiSearch = (data) => {
  return new Request().http({
    url: '/property/matching/query-by-types',
    method: 'GET',
    data,
  })
}


export const getStreetPolygon = (data) => {
  return new Request().http({
    url: '/api/street/polygon',
    method: 'GET',
    data,
  })
}

export const getBuildingList = (data) => {
  return new Request().http({
    url: '/api/property/build/list',
    method: 'GET',
    data,
  })
}


export const getMatchinglist = (data) => {
  return new Request().http({
    url: '/api/property/matching/nearby',
    method: 'GET',
    data,
  })
}

export const getMatchinglistByStreet = (data) => {
  return new Request().http({
    url: '/api/property/matching/queryMatchingByStreet',
    method: 'GET',
    data,
  })
}

export const keywordSearch = (data) => {
  return new Request().http({
    url: '/api/search/keyword',
    method: 'GET',
    data,
  })
}

export const searchAllStreet = (data) => {
  return new Request().http({
    url: '/api/street/polygon/all',
    method: 'GET',
    data,
    hideLoading:true
  })
}